package cn.edu.xmu.javaee.chapter2.dependencyinjection.bean;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class AliPaymentService2 {
    private final PayAdaptor aliPayAdaptor;

    @Override
    public String toString() {
        return "PaymentService{" +
                "adaptor=" + aliPayAdaptor +
                '}';
    }
}
